package com.lwc.backendsinglestructure.annotation;

import com.lwc.backendsinglestructure.service.TestService;
import com.lwc.backendsinglestructure.service.impl.TestServiceImpl;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

//注解保留到运行时，通过反射可读取
@Retention(RetentionPolicy.RUNTIME)
// 允许作用目标：类、接口……
@Target(ElementType.TYPE)
@Import(TestServiceImpl.class)
public @interface EnableTestService {

}
